﻿-- Define the relationship between Model and Person
ALTER TABLE [dbo].[Model] WITH CHECK ADD  
       CONSTRAINT [FK_Model_CreatedByPerson] FOREIGN KEY([CreatedBy])
REFERENCES [dbo].[Person] ([PersonId])
ON DELETE NO ACTION
GO
-- Define the relationship between Model and Person
ALTER TABLE [dbo].[Model] WITH CHECK ADD  
       CONSTRAINT [FK_Model_LastChangedBy] FOREIGN KEY([LastChangedBy])
REFERENCES [dbo].[Person] ([PersonId])
ON DELETE NO ACTION
GO